let initialState = {number: 0}
const ADD = 'ADD2'
const MINUS = 'MINUS2'




function reducer(state = initialState, action) {
  // console.log('22')
  switch (action.type) {
    case 'ALLADD':
      return {number: state.number + 1}
    case ADD:
      return {number: state.number + 1}
    case MINUS:
      return {number: state.number - 1}
    default:
      return state
  }
}

export default reducer